context TERM rxvtbed
#don't place any keys statements before this statements
#the first keys statement initialises ncurses
setenv TERMINFO c:/Program Files/bed/terminfo
setenv isxterm rxvtbed
context TERM
#datatypedir $CONFDIR/misc/
CONTEXT COLORTERM 
keys  27 91 55 126 = home #home
keys  27 91 56 126 = end #end
CONTEXT CURSES_VERSION PDCURSES
keys 26 = suspend
context TERM
#less/vi like commandmode keybinding:
keys 58 102 = fileinfo
keys 58 104 = moveshow 
#keys 58 113 = closethis
keys 58 113 = quit 
keys 58 110 =  nextfile
keys 58 78 =  prevfile
keys 117 = undo
keys 106 = linedown
keys 107 = lineup
keys 108 = nextchar
keys 104 = backchar
keys  48 = beginline
keys  36 = endline
keys  49 71 = beginfile
keys  103 = beginfile
keys  71 = endfile
keys  105  = fromcommand
keys  115  = fromcommand
keys 47 = search
keys 110 = nextsearch
keys 98 = pageup
keys 32 = pagedown
keys 118 = setselect
keys 121 = copyselect
keys 112 = pastselect
keys 58 119 = dosave
keys 109 = keymark
keys 96 = tomark
keys 58 101 = addfile
keys 58 115 = replace
keys  27 65 = up
keys  27 66 = down
keys  27 68 = left
keys  27 67 = right
#keys  27 254 118 = pgup
keys  27 81 = dosave
keys  27 82 = nextsearch
keys 72=beginpage
keys 76=endpage
keys 77=middlepage
 

keys 27 91 49 49 126 = f1
keys 27 91 91 65 = f1
CONTEXT CURSES_VERSION PDCURSES
setenv noxterm 1
context DISPLAY
setenv isxterm DISPLAY
context TERM xterm
setenv isxterm xterm
context TERM rxvt
setenv isxterm rxvt
context TERM xterm-color
setenv isxterm xterm-color
context ! isxterm
setenv noxterm 1
CONTEXT ! noxterm 
setenv SHELL bash.exe
color OPENLIST    black  cyan bold
color OPENLISTACT  red  white bold reverse
color OPENLISTSEL  green  magenta
color OPENNORMAL  white  magenta bold 
color OPENLISTACT  brown yellow bold  reverse
color SPACEAFTER black white
color TEXT  normal
color SELECTION  reverse
color CURSOR  red   green bold reverse
color SELCURSOR  black cyan  reverse underline bold
color COMMAND reverse
color BAR BLUE white reverse
color BARKEY  black  white bold underline
color MENU BLUE WHITE reverse
color MENUKEY  black white bold underline
color MENUSEL BLUE  WHITE
#color OPENTITLE yellow red   reverse bold
#color OPENTITLE red yellow  reverse bold
#color OPENKEY  yellow  BLACK bold reverse
color OPENTITLE yellow green  reverse bold
color OPENKEY   block white  bold underline
color SHOWBACK    white    blue reverse
keys  127 = backspace #backspace
keys  27 91 49 50 126 = dosave #F2
keys  27 91 49 51 126 = nextsearch #F3
keys  27 91 49 52 126 = playrecord #F4
keys  27 91 72 = home #home
keys  27 91 70 = end #end
keys  27 79 80 = moveshow #F1
keys  27 79 81 = dosave #F2
keys  27 79 82 = nextsearch #F3
keys  27 79 50 82 = beginfile #S-F3
keys  27 79 50 83 = endfile #S-F4
keys  27 91 49 56 59 50 126 = middlepage #S-F7
keys  27 91 49 53 59 50 126 = addprev #S-F5
keys  27 91 49 55 59 50 126 = addnext #S-F6
keys  27 79 83 = playrecord #F4
keys 27 91 49 59 53 70 = endfile
keys 27 91 49 59 53 72 = beginfile
keys 27 91 56 94 = endfile
keys 27 91 55 94  = beginfile
context TERM

